package com.xiaohao.student_course.service;

import com.xiaohao.student_course.bean.User;
import com.xiaohao.student_course.dao.UserDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created with IntelliJ IDEA.
 *
 * @author 小浩
 * @date 2018-12-15 17:06
 * @package com.xiaohao.student_course.service
 * @description
 */
@Service
public class UserSevice {
    @Autowired
    private UserDao userDao;
    public User findUserByName(String name){
        return userDao.findUserByUsername(name);
    }
}
